package com.feifan.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.feifan.api.model.UmsLog;
import com.feifan.api.service.IUserLogService;
import com.feifan.api.service.IUserService;
import com.feifan.provider.mapper.UmsAdminMapper;
import com.feifan.provider.mapper.UmsLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * @program: FinalProject
 * @author: Xiaofan
 * @createTime: 2021-08-05 15:51
 * @description: Functions of this class is
 **/
@Transactional//用于管理事务
@Service(version = "1.0.0",
        interfaceName = "com.feifan.api.service.IUserLogService",
        interfaceClass = IUserLogService.class)
public class UserLogService implements IUserLogService {
    @Autowired
    private UmsLogMapper dao;

    @Override
    public Integer insert(UmsLog umsLog) {
        return dao.insert(umsLog);
    }
}